// 导入common.less 文件
@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background-color: #f2f2f2;
}

// 顶部搜索框
.search-content {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem/50);
    background-color: #ffc001;

    .classify {
        width: (44rem/50);
        height: (70rem/50);
        // background-color: pink;
        margin: (11rem/50) (25rem/50) (7rem/50) (24rem/50);
        background: url(../images/classify.png) no-repeat;
        background-size: (44rem/50) (70rem/50);
    }

    .login {
        width: (75rem/50);
        height: (70rem/50);
        // background-color: blue;
        margin: (10rem/50);
        font-size: (25rem/50);
        text-align: center;
        color: #fff;
        line-height: (70rem/50);
    }

    .search {
        flex: 1;

        input {
            outline: none;
            width: 100%;
            border: 0;
            height: (66rem/50);
            border-radius: (33rem/50);
            background-color: #fff2cc;
            margin-top: (12rem/50);
            font-size: (25rem/50);
            padding-left: (55rem/50);
            color: #757575;
        }
    }
}

// banner 部分
.banner {
    width: (750rem/50);
    height: (368rem/50);

    img {
        width: 100%;
        height: 100%;
    }
}

// 广告部份
.ad {
    display: flex;

    a {
        flex: 1;

        img {
            width: 100%;
        }
    }
}

// nav 模块
nav {
    width: (750rem/50);

    a {
        float: left;
        width: 3rem;
        height: (140rem/50);
        text-align: center;

        img {
            display: block;
            width: 1.0933rem;
            height: (82rem/50);
            margin: 0.2rem auto 0;
        }

        span {
            font-size: (25rem/50);
            color: #333;
        }
    }
}